<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><s:text name="title.active"/></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  <style type="text/css">
  body {
	text-align: center;
	line-height:42px;
	font-family:宋体;
	font-weight: bold;
	color:#FFFFFF;
	background-color: #000000;
	
	}
.temp{
		margin:0 auto;
		width:1160px;
		border:0px solid;
		text-align:center;
	
}
 </style>
  </head>
  
  <body>
    <jsp:include page="head.jsp"></jsp:include>
   <div class="temp">
   <table  style="table-layout:fixed;">
   	<tr>
   		<td>排名:</td>
   		<td>玩家昵称:</td>
   		<td>实力值:</td>
   		<td>活躍度:</td>
   	</tr>
   	
   	<s:iterator value="pageBean.list" id="active">
   		<tr>
   			<td><s:property value="#active.rank"/></td>
   			<td><a href="playerinfo.html?uid=<s:property value="#active.uid" />"><s:property value="#active.nickname" /></a></td>
   			<td><s:property value="#active.capable" /></td>
   			<td><s:property value="#active.playnumber" /></td>
   		</tr>
   </s:iterator>
   </table>
   
   
   
    <br/>
    	共<s:property value="pageBean.allRow"/> 条记录
    	共<s:property value="pageBean.totalPage"/>页
    	当前第<s:property value="pageBean.currentPage"/>页
		<br/> 
		<s:if test="%{pageBean.currentPage == 1}">
 		第一页 上一页
 		</s:if>
    	<s:else>
    	<a href="activeplayer.html?page=1">第一页</a>
    	<a href="activeplayer.html?page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
    	</s:else>
    	<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
    	<a href="activeplayer.html?page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
    	<a href="activeplayer.html?page=<s:property value="pageBean.totalPage"/>">最后一页</a>
		</s:if> 
		<s:else> 
		下一页 最后一页
		</s:else>
      </div>
    
    <jsp:include page="foot.jsp"></jsp:include>
  </body>
</html>
